<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  // window.onhashchange = function(){}
  window.addEventListener('hashchange', (ev) => {
    console.log('ev:',ev);
  });
</script>
</body>
</html>
